//
//  KFDChat.m
//  KFD
//
//  Created by Lucky Luke on 8/15/15.
//  Copyright (c) 2015 kfd. All rights reserved.
//

#import "KFDChat.h"

@implementation KFDChat

-(instancetype)initWithDictionary:(NSDictionary *)dictionary
{
    if (self=[super initWithDictionary:dictionary]) {
        NSString* newnum=dictionary[@"newnum"];
        self.unreadnum=newnum.integerValue;
        NSString* date=dictionary[@"dateline"];
        self.lasttime=[NSDate dateWithTimeIntervalSince1970:date.integerValue];
    }
    return self;
}

@end
